package config

import (
	"fmt"
	"github.com/spf13/cobra"
)

var (
	configYaml string
)

var ConfigCmd = &cobra.Command{
	Use: "config",
	Short: "config info",
	Example: "cobra config -c config/setting.yaml",
	Run: func(cmd *cobra.Command, args []string) {
		run()
	},
}

func init() {
	ConfigCmd.PersistentFlags().StringVarP(&configYaml, "config", "c", "config/settings.yml", "Start server with provided configuration file")
}

func run()  {
	fmt.Println("config :",configYaml)
}